package com.bruce.demo2.patterns.demo2.structural.demo07.adapter.demo1;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 测试类
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/7/22 21:37
 */
public class Test {
    @org.junit.Test
    public void test() {
        Computer computer = new Computer();
        SDCardImp sdCardImp = new SDCardImp();
        computer.setSdCard(sdCardImp);
        System.out.println(computer.readSD());
        computer.writeSD("Bruce");

        System.out.println("======================");
        computer.setSdCard(new SDAdapterTF());
        System.out.println(computer.readSD());
        computer.writeSD("Burce");
    }

}
